package com.cloud.job.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.api.domain.job.EvStatistics;
import com.cloud.api.domain.stats.VehicleDataRepair;
import com.cloud.api.domain.tsp.VehicleData;
import com.cloud.job.mapper.VehicleDataMapper;
import com.cloud.job.service.IVehicleDataService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨斌
 * 2025-01-2025-01-14
 */
@Service("vehicleDataService")
@DS("doris")
public class VehicleDataServiceImpl extends ServiceImpl<VehicleDataMapper, VehicleData> implements IVehicleDataService {

    @Resource
    private VehicleDataMapper vehicleDataMapper;
    @Override
    public List<EvStatistics> getVehicleStatistics() {
        return vehicleDataMapper.getVehicleStatistics();
    }

    @Override
    public List<VehicleDataRepair> selectData(double minLat, double minLng, double maxLat, double maxLng) {
        return vehicleDataMapper.selectData(minLat, minLng, maxLat, maxLng);
    }
}
